package guoanmaker.operator.business.service;

import guoanmaker.operator.business.model.OperatorActivityType;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author huZhaoyu 
 * @ClassName: OperatorActivityTypeServiceInterface 
 * @Description: OperatorActivityTypeServiceInterface
 * @date 2017/6/29
 */
public interface OperatorActivityTypeServiceInterface {

    /** 
    * @Title: saveActivityType
    * @Description: 新增/修改 活动类型
    * @param：OperatorRoundPhoto   
    * @return OperatorActivityType    
    * @throws 
    */
    OperatorActivityType saveActivityType(OperatorActivityType operatorActivityType);

    /** 
    * @Title: getAllActivityType
    * @Description: 查询所有活动类型
    * @param：void  
    * @return List<OperatorActivityType>   
    * @throws 
    */
    List<OperatorActivityType> getAllActivityType();

    /** 
    * @Title: getAllActivityTypeByPage
    * @Description: 查询全部活动类型并分页 
     * @param：Integer page 页码  
     * @param：Integer size 条数 
    * @return Page<OperatorActivityType>   
    * @throws 
    */
    Page<OperatorActivityType> getAllActivityTypeByPage(Integer page, Integer size);

    /** 
     * @Title: getActivityTypeByPageOrderByWeight
     * @Description: 按权重排序查询活动类型并分页 
     * @param：Integer page 页码  
     * @param：Integer size 条数 
     * @return Page<OperatorActivityType>   
     * @throws 
     */
    Page<OperatorActivityType> getActivityTypeByPageOrderByWeight(Integer page, Integer size);


    /** 
    * @Title: deleteActivityTypeById
    * @Description: 根据Id删除活动类型 
    * @param： String id   
    * @return void   
    * @throws 
    */
    void deleteActivityTypeById(String id);

    /** 
    * @Title: getActivityTypeById 
    * @Description: 根据Id查询活动类型
    * @param： String id
    * @return OperatorActivityType    
    * @throws 
    */
    OperatorActivityType getActivityTypeById(String id);

    /** 
     * @Title: countAllById 
     * @Description: 根据Id查询活动类型
     * @param： String id
     * @return Integer    
     * @throws 
     */
    Integer countAllById();

}
